import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    // 宠物模块
    {
      path: '/petslost',
      name: 'petslost',
      component: () => import('../views/pets/PetsLost.vue'),
    },
    {
      path: '/examine',
      name: 'examine',
      component: () => import('../views/pets/Examine.vue'),
    },
    
    {
      path: '/pets',
      name: 'pets',
      component: () => import('../views/pets/Pets.vue'),
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/login/Login.vue'),
      meta: { LeftTabHidden: true },
    },
    {
      path: '/blog',
      name: 'blog',
      component: () => import('../views/blog/Blog.vue'),
      exact: true
    },
    // 用户列表模块 -lxz
    {
      path: '/UserManage',
      name: 'UserManage',
      component: () => import('../views/userManage/UserManage.vue'),
     
    },
    // 宠物商品发布-zqb
    {
      path: '/issue',
      name: 'issue',
      component: () => import('../views/shopping/IssueShop.vue'),
     
    },
    {
      path: '/manage',
      name: 'manage',
      component: () => import('../views/shopping/ManageShop.vue'),
     
    },

    {
      path: '/order',
      name: 'order',
      component: () => import('../views/order/OrderManage.vue'),
     
    },
  ],
})

export default router
